package com.adinnet.api.peaseLevel.service.impl;

import com.adinnet.api.peaseLevel.model.PeaseLevel;
import com.adinnet.api.peaseLevel.mapper.PeaseLevelMapper;
import com.adinnet.api.peaseLevel.service.PeaseLevelService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 豆苗成长阶段表 服务实现类
 * </p>
 *
 * @author chenjia
 * @since 2020-12-03
 */
@Service
public class PeaseLevelServiceImpl extends ServiceImpl<PeaseLevelMapper, PeaseLevel> implements PeaseLevelService {

    @Autowired
    private PeaseLevelMapper peaseLevelMapper;

    @Override
    public List<PeaseLevel> getAllPeaseLevel() {
        QueryWrapper<PeaseLevel> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("deleted",0);
        return peaseLevelMapper.selectList(queryWrapper);
    }
}
